package com.pansky.crm.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author ：zhouzhiyong
 * @date ：Created in 2021/2/22 9:02
 * @description：员工实体
 */
@Data
@TableName("t_employee")
public class Employee {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField(value = "login_name")
    private String loginName;
    @TableField(value = "login_pwd")
    private String loginPwd;
    @TableField(value = "actual_name")
    private String actualName;
    @TableField(value = "role_id")
    private Integer roleId;
    @TableField(value = "nick_name")
    private String nickName;
    private String phone;
    @TableField(value = "id_card")
    private String idCard;
    private Date birthday;
    private String email;
    @TableField(value = "department_id")
    private Integer departmentId;
    @TableField(value = "is_leave")
    private Integer isLeave;
    @TableField(value = "is_disabled")
    private Integer isDisabled;
    private String remark;
    @TableField(value = "create_user")
    private Integer createUser;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy年MM月dd日 HH:mm:ss")
    private Date updateTime;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy年MM月dd日 HH:mm:ss")
    private Date createTime;
    @TableField(value = "is_delete")
    @TableLogic
    private Integer isDelete;
}
